import http from "../request";

/**
 * 请求获取课程教程详情
 */
export const requestHomeWorkDetail = (id) => {
  return http.post(
      `/apiV2/user/homeWork/detail/${id}`
  )
}

/**
 * 获取作业列表
 * @param type
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const requestHomeWorkList = (type) => {
  return http.post(
      `/apiV2/user/homeWork/list`, {type}
  )
}

/**
 * 请求提交作业
 * @param type
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const requestSubmitHomework = (data) => {
  return http.post(
      `/apiV2/user/homeWork/submit`, data
  )
}



